package com.crawler.model;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.net.Proxy;
import java.util.Map;

@Data
@ToString
public class CrawlerRequestInfo implements Serializable {

    /**
     * 请求参数URL
     */
    private String url;
    /**
     * 请求方法
     * POST
     * GET
     */
    private String method;
    /**
     * 请求参数
     */
    private Map<String, String> paramMap;
    /**
     * 请求cookie
     */
    private Map<String, String> cookieMap;
    /**
     * 请求头
     */
    private Map<String, String> headerMap;
    /**
     * 请求编码
     */
    private String charset;

    private String userAgent;

    private String referrer;

    private boolean ifPost;

    private int timeoutMillis;

    private boolean isValidateTLSCertificates;

    private Proxy proxy;
}
